package com.atom.other

import com.raizlabs.android.dbflow.annotation.Column
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import com.raizlabs.android.dbflow.structure.BaseModel
import java.util.*


internal abstract class AbstractBasicEntity : BaseModel {

    @Column
    @PrimaryKey
    var id: String? = null

    @Column(length = 32)
    var name: String? = null

    @Column(length = 32)
    var createAt: Date? = null

    @Column(length = 32)
    var updateAt: Date? = null

    constructor() : super()

    override fun toString(): String {
        return "User(id=$id, name=$name, createAt=$createAt, updateAt=$updateAt)"
    }
}